package com.ruoyi.procurementmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.procurementmanagement.mapper.ErpPurchasePriceMapper;
import com.ruoyi.procurementmanagement.domain.ErpPurchasePrice;
import com.ruoyi.procurementmanagement.service.IErpPurchasePriceService;

/**
 * 采购价格分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class ErpPurchasePriceServiceImpl implements IErpPurchasePriceService 
{
    @Autowired
    private ErpPurchasePriceMapper erpPurchasePriceMapper;

    /**
     * 查询采购价格分析
     * 
     * @param priceid 采购价格分析主键
     * @return 采购价格分析
     */
    @Override
    public ErpPurchasePrice selectErpPurchasePriceByPriceid(Long priceid)
    {
        return erpPurchasePriceMapper.selectErpPurchasePriceByPriceid(priceid);
    }

    /**
     * 查询采购价格分析列表
     * 
     * @param erpPurchasePrice 采购价格分析
     * @return 采购价格分析
     */
    @Override
    public List<ErpPurchasePrice> selectErpPurchasePriceList(ErpPurchasePrice erpPurchasePrice)
    {
        return erpPurchasePriceMapper.selectErpPurchasePriceList(erpPurchasePrice);
    }

    /**
     * 新增采购价格分析
     * 
     * @param erpPurchasePrice 采购价格分析
     * @return 结果
     */
    @Override
    public int insertErpPurchasePrice(ErpPurchasePrice erpPurchasePrice)
    {
        return erpPurchasePriceMapper.insertErpPurchasePrice(erpPurchasePrice);
    }

    /**
     * 修改采购价格分析
     * 
     * @param erpPurchasePrice 采购价格分析
     * @return 结果
     */
    @Override
    public int updateErpPurchasePrice(ErpPurchasePrice erpPurchasePrice)
    {
        return erpPurchasePriceMapper.updateErpPurchasePrice(erpPurchasePrice);
    }

    /**
     * 批量删除采购价格分析
     * 
     * @param priceids 需要删除的采购价格分析主键
     * @return 结果
     */
    @Override
    public int deleteErpPurchasePriceByPriceids(Long[] priceids)
    {
        return erpPurchasePriceMapper.deleteErpPurchasePriceByPriceids(priceids);
    }

    /**
     * 删除采购价格分析信息
     * 
     * @param priceid 采购价格分析主键
     * @return 结果
     */
    @Override
    public int deleteErpPurchasePriceByPriceid(Long priceid)
    {
        return erpPurchasePriceMapper.deleteErpPurchasePriceByPriceid(priceid);
    }
}
